//
//  RCTConvert+BaiduMapKit.h
//  YuanXinBaiduMap
//
//  Created by 晏德智 on 16/9/27.
//  Copyright © 2016年 晏德智. All rights reserved.
//

#if __has_include(<React/RCTConvert.h>)
#import <React/RCTConvert.h>
#import <React/RCTImageSource.h>
#import <React/RCTUtils.h>
#else
#import "RCTConvert.h"
#import "RCTImageSource.h"
#import "RCTUtils.h"
#endif

#import <BaiduMapAPI_Map/BMKMapComponent.h>
#import "BaiduLocationOptions.h"

@class RCTBaiduMapAnnotation;
@class RCTBaiduMapOverlay;

@interface RCTConvert (BaiduMapKit)

+ (BMKCoordinateSpan)BMKCoordinateSpan:(id)json;
+ (BMKCoordinateRegion)BMKCoordinateRegion:(id)json;
+ (BMKMapType)BMKMapType:(id)json;

+ (RCTBaiduMapAnnotation *)RCTBaiduMapAnnotation:(id)json;
+ (RCTBaiduMapOverlay *)RCTBaiduMapOverlay:(id)json;

+ (NSArray<RCTBaiduMapAnnotation *> *)RCTBaiduMapAnnotationArray:(id)json;
+ (NSArray<RCTBaiduMapOverlay *> *)RCTBaiduMapOverlayArray:(id)json;

+ (BMKLocationViewDisplayParam *)RCTBaiduMapLocationViewDisplayParam:(id)json;

+ (BMKUserLocation *)BMKUserLocation:(id)json;

+ (BaiduLocationOptions)BaiduLocationOptions:(id)json;

+ (BMKMapStatus *)BMKMapStatus:(id)json;

@end

